package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="FireControlEquipment"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class FireControlEquipment implements Serializable {

    /** identifier field */
    private Integer equipmentId;

    /** nullable persistent field */
    private String equipmentName;

    /** nullable persistent field */
    private Integer quantity;

    /** nullable persistent field */
    private String corpName;

    /** nullable persistent field */
    private String purchaseDate;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public FireControlEquipment(String equipmentName, Integer quantity, String corpName, String purchaseDate, String userId, String latestDate, String remark) {
        this.equipmentName = equipmentName;
        this.quantity = quantity;
        this.corpName = corpName;
        this.purchaseDate = purchaseDate;
        this.userId = userId;
        this.latestDate = latestDate;
        this.remark = remark;
    }

    /** default constructor */
    public FireControlEquipment() {
    }

    /** minimal constructor */
    public FireControlEquipment(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="EquipmentId"
     *             unsaved-value="0"
     *         
     */
    public Integer getEquipmentId() {
        return this.equipmentId;
    }

    public void setEquipmentId(Integer equipmentId) {
        this.equipmentId = equipmentId;
    }

    /** 
     *            @hibernate.property
     *             column="EquipmentName"
     *             length="100"
     *         
     */
    public String getEquipmentName() {
        return this.equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    /** 
     *            @hibernate.property
     *             column="Quantity"
     *             length="10"
     *         
     */
    public Integer getQuantity() {
        return this.quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    /** 
     *            @hibernate.property
     *             column="CorpName"
     *             length="100"
     *         
     */
    public String getCorpName() {
        return this.corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    /** 
     *            @hibernate.property
     *             column="PurchaseDate"
     *             length="23"
     *         
     */
    public String getPurchaseDate() {
        return this.purchaseDate;
    }

    public void setPurchaseDate(String purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("equipmentId", getEquipmentId())
            .toString();
    }

}
